package com.yc.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yc.bean.OrderBean;
import com.yc.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zwei
 * @create 2024-10-16 11:19
 */
@Service
public class OrderBizImpl implements OrderBiz{
    private OrderMapper orderMapper;
    @Autowired
    public void setOrderMapper(OrderMapper orderMapper) {
        this.orderMapper = orderMapper;
    }
    @Override
    public void deleteByColumnValue(Integer state) {
        QueryWrapper<OrderBean> qw=new QueryWrapper<>();
        qw.eq("order_state",state);
        orderMapper.delete(qw);
    }
}
